package com.study.java.oop.callback;

/**
 * @Author: MuMu
 * @Date: 2024/3/28 19:41
 */
public class CallBackClass implements CallBack{

    @Override
    public void succeed() {
        System.out.println("网页打开成功");
    }

    @Override
    public void error(ErrorCode errorCode) {
        if (errorCode==ErrorCode.NOT_EXITS){
            System.out.println("网页打开失败！");
        } else {
            System.out.println("失败！原因未知");
        }

    }
}
